package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.ZtfAppLearningRecord;
import com.ruoyi.system.domain.ZtfLearningRecord;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 课程记录Mapper接口
 * 
 * @author ruoyi
 * @date 2025-06-06
 */
@Mapper
public interface ZtfAppLearningRecordMapper
{


    /**
     * 新增课程记录
     * 
     * @param ztfLearningRecord 课程记录
     * @return 结果
     */
    public int insertZtfLearningRecord(ZtfAppLearningRecord ztfLearningRecord);

    /**
     * 查询旧的播放记录
     * @return
     */
    ZtfAppLearningRecord selectLastOne();

    /**
     * 查询所有视频的播放进度
     * @param videoId
     * @return
     */
    List<ZtfAppLearningRecord> selectRecordList(String videoId);
}
